/////////////////////////////////////////////////////////////////////////////
// Name:        clientapp.cpp
// Purpose:     
// Author:      
// Modified by: 
// Created:     Sun 05 Dec 2010 17:43:27 EET
// RCS-ID:      
// Copyright:   
// Licence:     
/////////////////////////////////////////////////////////////////////////////

// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

////@begin includes
////@end includes

#include "clientapp.h"

#include "camclientframe.h"

////@begin XPM images

////@end XPM images


/*
 * Application instance implementation
 */

////@begin implement app
IMPLEMENT_APP( ClientApp )
////@end implement app

/*
 * ClientApp type definition
 */

IMPLEMENT_CLASS( ClientApp, wxApp )


/*
 * ClientApp event table definition
 */

BEGIN_EVENT_TABLE( ClientApp, wxApp )

////@begin ClientApp event table entries
////@end ClientApp event table entries

END_EVENT_TABLE()


/*
 * Constructor for ClientApp
 */

ClientApp::ClientApp()
{
    Init();
}


/*
 * Member initialisation
 */

void ClientApp::Init()
{
////@begin ClientApp member initialisation
////@end ClientApp member initialisation
}

/*
 * Initialisation for ClientApp
 */

bool ClientApp::OnInit()
{    
////@begin ClientApp initialisation
    // Remove the comment markers above and below this block
    // to make permanent changes to the code.

#if wxUSE_XPM
    wxImage::AddHandler(new wxXPMHandler);
#endif
#if wxUSE_LIBPNG
    wxImage::AddHandler(new wxPNGHandler);
#endif
#if wxUSE_LIBJPEG
    wxImage::AddHandler(new wxJPEGHandler);
#endif
#if wxUSE_GIF
    wxImage::AddHandler(new wxGIFHandler);
#endif
////@end ClientApp initialisation

	CamClientFrame * pFrame = new CamClientFrame(NULL);
	pFrame->Show();
	SetTopWindow(pFrame);

    return true;
}


/*
 * Cleanup for ClientApp
 */

int ClientApp::OnExit()
{    
////@begin ClientApp cleanup
    return wxApp::OnExit();
////@end ClientApp cleanup
}

